﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//using System.Management.Automation;

//using ESF.MUP.BasePlatform;
//using ESF.MUP.BasePlatform.Services;
//using ESF.MUP.BasePlatform.Domain.Model;
//using ESF.MUP.BasePlatform.ApplicationServices.Interfaces;
////using ESF.MUP.BasePlatform.DbService;
////using ESF.MUP.BasePlatform.DbService.MSSQL;

//using Microsoft.Practices.Unity;

//namespace ESF.MUP.Powershell
//{
//    [Cmdlet(VerbsCommon.Add, "Application")]
//    public class AddApplication : BaseCmdlet
//    {

//        [Parameter(Mandatory=true)]
//        public String Name { get; set; }


//        [Parameter(Mandatory = true)]
//        public String Description { get; set; }


//        protected override void ProcessRecord()
//        {
//            IApplicationService appSvc = MiddlewareManagementService.Current.GetApplicationService();

//            Application app = new Application()
//            {
//                Name = this.Name,
//                Description = this.Description
//            };

//            appSvc.Add(app);

//            this.WriteObject(app);
//        }
//    }
//}
